* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: red;
}

.gameContainer {
    background-image: url('1000063137-transformed.jpeg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dino {
    background-image: url('hero.png');
    background-repeat: no-repeat;
    background-size: contain;
    width: 134px;
    height: 140px;
    position: absolute;
    bottom: 0;
    left: 52px;
    transition: left 0.1s;
}

.obstacle {
    width: 118px;
    height: 115px;
    background-image: url('background-removed.png');
    background-size: contain;
    position: absolute;
    bottom: 0;
    left: 44vw;
}

.animateDino {
    animation: dinoJump 0.6s linear;
}

.obstacleAni {
    animation: obstacleMove 5s linear infinite;
}

.gameOver {
    position: relative;
    top: 20px;
    font-size: 45px;
    background-color: rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 1;
    text-align: center;
}

.control {
    position: absolute;
    top: 130px;
    right: 12px;
    font-size: 18px;
    color: black;
    border: 1px solid;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
}

button {
    position: absolute;
    right: 12px;
    top: 20px;
    font-size: 15px;
    border: 3px solid;
    text-align: center;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    color: black;
}

button:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.5);
}

#scoreCont {
    font-size: 25px;
    color: #000000;
    background-color: rgba(167, 198, 143, 0.5);
    font-weight: bold;
    position: absolute;
    right: 134px;
    top: 28%;
    border: 10px solid black;
    padding: 10px;
    font-family: 'Ubuntu', sans-serif;
    border-radius: 10px;
}

/* Keyframes for Dino Jump and Obstacle Movement */
@keyframes dinoJump {
    0% {
        bottom: 0;
    }
    50% {
        bottom: 422px;
    }
    100% {
        bottom: 0;
    }
}

@keyframes obstacleMove {
    0% {
        left: 100vw;
    }
    100% {
        left: -10vw;
    }
}

/* Responsive design for screens less than 700px */
@media only screen and (max-width: 700px) {
    .gameContainer {
        background-size: cover;
    }

    .dino {
        width: 80px;
        height: 84px;
        left: 30px;
    }

    .obstacle {
        width: 70px;
        height: 68px;
        left: 40vw;
    }

    .gameOver {
        font-size: 30px;
        top: 20px;
        padding: 8px 16px;
    }

    .control {
        font-size: 14px;
        top: 100px;
        right: 10px;
        padding: 3px 8px;
    }

    button {
        font-size: 12px;
        top: 10px;
        right: 10px;
        padding: 3px 8px;
    }

    #scoreCont {
        font-size: 20px;
        top: 24%;
        right: 30px;
        padding: 8px;
        border-width: 5px;
    }
}
